Skip to content

Fix hardcoded ~/.ldk-server default path in CLI help and error messages#169

Merged
benthecarman merged 1 commit intolightningdevkit:mainfrom
joostjager:fix-default-config-doc
Mar 24, 2026
Merged

Fix hardcoded ~/.ldk-server default path in CLI help and error messages#169
benthecarman merged 1 commit intolightningdevkit:mainfrom
joostjager:fix-default-config-doc

Conversation

@joostjager
Copy link
Contributor

The CLI help text and error messages always reported ~/.ldk-server as the default config location, but on macOS the actual default is ~/Library/Application Support/ldk-server. Introduce a DEFAULT_DIR const using cfg!() to select the correct platform-specific path, and reference it in all help text and error messages.

AI tools were used in preparing this commit.

The CLI help text and error messages always reported ~/.ldk-server as the
default config location, but on macOS the actual default is
~/Library/Application Support/ldk-server. Introduce a DEFAULT_DIR const
using cfg\!() to select the correct platform-specific path, and reference
it in all help text and error messages.

AI tools were used in preparing this commit.
@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Mar 24, 2026

I've assigned @benthecarman as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

Copy link
Collaborator

@tnull tnull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we discussed this in the original PR and decided not to bother. No too strong opinion, so fine by me.

But, are we really expecting people to run this in production on macOS or even Windows? For any other use the user needs to override the paths anyways, no?

@joostjager
Copy link
Contributor Author

All I can say is that I was confused because of the wrong docs. It's no big deal ofc, but also -15/+15 so why not.

@benthecarman benthecarman merged commit 18954b3 into lightningdevkit:main Mar 24, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants